package com.xm;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@MapperScan("com.xm.*.module.*.mapper")
@SpringBootApplication(scanBasePackages = {"com.xm"})
@EnableDiscoveryClient
@EnableFeignClients("com.xm.service.framework.feign")  //括号里是feign接口的包路径
public class BookConsumerApplicationStart {

    public static void main(String[] args) {
        SpringApplication.run(BookConsumerApplicationStart.class, args);
        System.out.println("book服务启动成功");
    }

}
